package com.qf.controller;

import com.qf.pojo.resVo.BaseResult;
import com.qf.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/teacher")
public class TeacherController {

    @Autowired
    TeacherService teacherService;

    @RequestMapping("/findAll")
    public BaseResult findAll(){
        return teacherService.findAll();
    }
}
